package com.api.hg.util;

public class TranceUtil {
    private String swformid="-198";
    private String swmodeid="102";
    private String swcustomid="93";

    private String gbformid="-197";
    private String gbmodeid="101";
    private String gbcustomid="92";

//com.api.hg.util.TranceUtil.getSwTitle
    public String getSwTitle(String title,String id){
        String url="<a title=\""+title+"\" href=\"javascript:void(0)\" onclick=\"javaScript:window.open('/spa/cube/index.html#/main/cube/card?type=0&modeId="+swmodeid+"&formId="+swformid+"&billid="+id+"&opentype=2&customid="+swcustomid+"&viewfrom=fromsearchlist&dbviewtype=3')\" class=\"autoWrap\">"+title+"</a>";
        return url;
    }
    //com.api.hg.util.TranceUtil.getGbTitle
    public String getGbTitle(String title,String id){
        String url="<a title=\""+title+"\" href=\"javascript:void(0)\" onclick=\"javaScript:window.open('/spa/cube/index.html#/main/cube/card?type=0&modeId="+gbmodeid+"&formId="+gbformid+"&billid="+id+"&opentype=2&customid="+gbcustomid+"&viewfrom=fromsearchlist&dbviewtype=3')\" class=\"autoWrap\">"+title+"</a>";
        return url;
    }
}
